<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="language" content="en"/>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->baseUrl; ?>/css/styles.css"/>
    <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery-ui.css">
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
<!--    <script src="--><?php //echo Yii::app()->request->baseUrl; ?><!--/js/jquery-1.9.1.js"></script>-->
<!--    <script src="--><?php //echo Yii::app()->request->baseUrl; ?><!--/js/jquery-ui.js"></script>-->
<!--    <script src="--><?php //echo Yii::app()->request->baseUrl; ?><!--/js/jquery-ui-timepicker-addon.js"></script>-->
<!--    <script type="text/javascript">-->
<!--        var $j = jQuery.noConflict();-->
<!--        $j(function() {-->
<!--            $j('input[type=date]').datetimepicker(-->
<!--                {-->
<!--                    timeFormat: 'HH:mm:ss',-->
<!--                    showSecond: true,-->
<!--                    dateFormat:'yy-mm-dd',-->
<!--                    separator: ' '-->
<!--                }-->
<!--            );-->
<!--        });-->
<!--    </script>-->
    <?php Yii::app()->bootstrap->init(); ?>
</head>

<body>

<?php
$this->widget('bootstrap.widgets.TbNavbar', array(
    'items' => array(
        array(
            'class' => 'bootstrap.widgets.TbMenu',
            'items' => array(
                "--",
                array('label' => 'Trang chủ', 'url' => array('/site/index')),
                array('label' => 'Duyệt tin', 'url' => '#', 'items' => array(
                    array('label' => 'Thông báo mời thầu', 'url' => array('/thongbaomoithau/index')),
                    array('label' => 'Kế hoạch đấu thầu', 'url' => array('/kehoachdauthau/index')),
                )),
                array('label' => 'Quản lý', 'url' => '#', 'items' => array(
                    array('label' => 'Kết quả đấu thầu', 'url' => array('/ketquadauthau/index')),
                    array('label' => 'Danh sách nhà thầu tham gia đấu thầu', 'url' => array('/danhsachnhathauthamgiadauthau/index')),
                    array('label' => 'Thông tin khác', 'url' => array('/thongtinkhac/index')),
                    array('label' => 'Giá đăng tin', 'url' => array('/gia-dang-tin/index')),
                )),
            ),
        ),
        array('class' => 'bootstrap.widgets.TbButton',
            'label' => 'Đăng nhập',
            'type' => 'primary',
            'url' => array('/site/login'),
            'htmlOptions' => array(
                'style' => Yii::app()->user->isGuest ? '' : 'display:none',
                'class' => 'pull-right',
            ),
        ),
        array('class' => 'bootstrap.widgets.TbButtonGroup',
            'buttons' => array(
                array('label' => Yii::app()->user->name, 'url' => '#'), // this makes it split :)
                array('items' => array(
                    array('label' => 'Thoát', 'url' => array('/site/logout')),
                )),
            ),
            'type' => 'info',
            'htmlOptions' => array(
                'style' => Yii::app()->user->isGuest ? 'display:none' : '',
                'class' => 'pull-right',
            ),
        ),
    ),
));
?>

<div class="container" id="page">

    <?php if (isset($this->breadcrumbs)): ?>
        <?php
                $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
                    'links' => $this->breadcrumbs,
                ));
                ?><!-- breadcrumbs -->
    <?php endif ?>

    <?php echo $content; ?>
    <hr>
    <div class="clear"></div>

    <div id="footer">
        Copyright &copy; <?php echo date('Y'); ?> by <b>Team Yii</b>.<br/>
        All Rights Reserved.<br/>
        <?php echo Yii::powered(); ?>
    </div>
    <!-- footer -->

</div>
<!-- page -->

</body>
</html>
